We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How can I use Application Controller like same Yii::app()->Controller in my the other place?

How can I use Application Controller like same Yii::app()->Controller in my the other place? thanks!

edited Jun '15

Could you elaborate a little bit the question?

if what you are looking for is to instanciate another controller to use it I discovered that you can do it the usual way:

$indexController = new IndexController();
$indexController->callinganAction();

but of course, calling it this way does not reproduce the entire dispatch process, only calls the method and returns the results.